<?php
require_once('../includes/init.php');
if (isset($_SESSION['userid'])&&$member1['permission']=="1") : ?>
<?php 
$title='HỆ THỐNG QUẢN TRỊ ADMIN - CONTROL PANEL';
include 'includes/Header.php';
?>
<base target="noidung"/>
<body id="homepage">
	
 <!-- Right Side/Main Content Start -->
    <div id="rightside">
    
    	<iframe name="noidung" src="<? echo $link;?>chungcu365/admin/QuanLy.php?action=QuanLyDuAn" style="width: 100%;height: 650px;overflow-x: hidden;border: 0px;overflow-y: scroll;"></iframe>
          
    </div>
    <!-- Right Side/Main Content End --><!-- Left Dark Bar Start -->
    <div id="leftside">
    <div class="notifications">
       <p><a href="" title="" target="_self"><img src="<? echo $link;?>chungcu365/admin/admincp/img/admin_logo.png" alt="Control Panel" /></a> </p>
    </div>
    
    	<div class="user">
        <a href="#" target="_self">	<img src="<? echo $link;?>chungcu365/admin/admincp/img/administrator.png" width="44" height="44" class="hoverimg" alt="Avatar" /></a>
            <p>Ban Quản Trị:</p>
            <p class="username"><? echo $member1['username'];?></p>
            <p class="userbtn"><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=TaiKhoanAdmin&ID=<? echo $member1['userid'];?>" title="">Sửa</a></p>
            <p class="userbtn"><a href="<? echo $link;?>Thoat.html" title="Thoát" onclick="return confirm ('Bạn có chắc chắn muốn thoát khỏi hệ thống?')" target="_self">Thoát</a></p>
        </div>
        <div class="notifications">
        	<p class="notifycount"><a href="" title="" class="notifypop">
            <? 
            $total_thamquan=mysql_num_rows(@mysql_query("select * from thamquan where TrangThai = '0'"));
            $total_lienhe=mysql_num_rows(@mysql_query("select * from lienhe where TrangThai = '0'"));
            echo $total_thamquan+$total_lienhe;?></a></p>
            <p><a href="" title="" class="notifypop">Thông báo mới</a></p>
            <p class="smltxt">(Click để xem)</p>
        </div>
        
        <ul id="nav">
        	<li>
                <a class="collapsed heading">DỰ ÁN</a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=TaoDuAn" title="">+ Tạo dự án Mới</a></li>
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=QuanLyDuAn" title="">+ Quản Lý dự án</a></li>
                </ul>
            </li>
            <li>
                <a class="collapsed heading">DANH MỤC</a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=TaoDanhMuc" title="">+ Tạo danh mục Mới</a></li>
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=QuanLyDanhMuc" title="">+ Quản Lý danh mục</a></li>
                </ul>
            </li>
            <li>
                <a class="collapsed heading">THAM QUAN </a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=DanhSachThamQuan" title="">+ Đăng kí tham quan</a></li>
                </ul>
            </li>
            <li>
                <a class="collapsed heading">LIÊN HỆ </a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=DanhSachLienHe" title="">+ Danh sách liên hệ</a></li>
                </ul>
            </li>
            
            <li>
                <a class="collapsed heading">MENU HEADER</a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=TaoMenu" title="">+ Tạo Menu Mới</a></li>
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=QuanLyMenu" title="">+ Quản lý Menu</a></li>
                </ul>
            </li>
            <li>
                <a class="collapsed heading">MENU FOOTER</a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=TaoMenuFooter" title="">+ Tạo Menu Mới</a></li>
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=QuanLyMenuFooter" title="">+ Quản lý Menu</a></li>
                </ul>
            </li>
            <li>
                <a class="collapsed heading">ĐƠN VỊ LIÊN KẾT</a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=TaoDVLienKet" title="">+ Thêm Đơn vị liên kết</a></li>
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=QuanLyDVLienKet" title="">+ Quản Lý Đơn vị liên kết</a></li>
                </ul>
            </li>
            <li>
                <a class="collapsed heading">TRUY CẬP</a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=DangOnline" title="" style="font-weight: bold;">+ Đang Online</a></li>
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=ThongKeTruyCap" title="" style="font-weight: bold;">+ Thống kê truy cập</a></li>
                </ul>
            </li>
            <li>
                <a class="collapsed heading">MOD</a>
                 <ul class="navigation">
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=TaoMod" title="" style="font-weight: bold;" onclick="#">+ Tạo tài khoản mới</a></li>
                    <li><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=QuanLyMod" title="" style="font-weight: bold;" onclick="#">+ Quản lý Mod</a></li>
                </ul>
            </li>       
        </ul>
    </div>
    <!-- Left Dark Bar End -->
    <!-- Notifications Box/Pop-Up Start --> 
    <div id="notificationsbox">
        <h4>THÔNG BÁO</h4>
        <ul>
            <li>
            	<h5><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=DanhSachThamQuan" title="">Có <b style="color: blue;"><? echo $total_thamquan;?></b> khách đăng kí tham quan mới !</a></h5>
            </li>
            <li>
            	<h5><a href="<? echo $link;?>chungcu365/admin/QuanLy.php?action=DanhSachLienHe" title="">Có <b style="color: blue;"><? echo $total_lienhe;?></b> liên hệ mới !</a></h5>
            </li>
        </ul>
    </div>
<?php include 'includes/Footer.php';?>
<?php endif; ?>
<?php
// Include file config.php
if (!isset($_SESSION['userid'])) : ?>
<?php include_once('DangNhap.php');?>
<?php endif; ?>	